﻿using Fortunate.IService.BASE;
using Fortunate.Application.Entities;

namespace Fortunate.IService
{
    public interface ILoginService : IBaseServices<Users>
    {

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="Account">账号</param>
        /// <param name="Password">密码</param>
        /// <returns></returns>
        Task<Users> GetLogin(string Account, string Password);

        /// <summary>
        /// 手机号码登录
        /// </summary>
        /// <param name="Phone">输入手机号码</param>
        /// <returns></returns>
        Task<List<Users>> GetLogin(string Phone);

        /// <summary>
        /// 根据账号获取密码加盐码
        /// </summary>
        /// <param name="Account">账号</param>
        /// <returns></returns>
        Task<string> GetAccountSalt(string Account);

    }
}
